home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freaks Macintosh Archive
/
Freaks Macintosh Archive.bin
/
Freaks Macintosh Archives
/
•New Files
/
tmr 8 small
/
tmr 8 small.rsrc
/
TEXT_3300_• vgc.cpp.txt
< prev
next >
Wrap
Text File
|
2000-01-09
|
3KB
|
78 lines
//Virtual Ghetto Craps
//vgc.cpp
//dah h1tman [murdah]
#include <iostream.h>
#include <stdlib.h>
#include <time.h>
int rollDice(void);
int intro(void);
main()
{
intro();
enum Status { kContinue, kWon, kLost };
int sum,myPoint;
Status gameStatus;
srand(time(NULL));
sum = rollDice();
switch(sum) {
case 7: case 11:
gameStatus = kWon;
break;
case 2: case 3: case 12:
gameStatus = kLost;
break;
default:
gameStatus = kContinue;
myPoint = sum;
cout<<"Point is " << myPoint << endl;
break;
}
while (gameStatus == kContinue) {
sum = rollDice();
if (sum == myPoint)
gameStatus = kWon;
else
if (sum == 7)
gameStatus = kLost;
}
if (gameStatus == kWon)
cout<<"jo0 win m0f0" << endl;
else
cout<<"jo0 l0se wh1t3 boi" << endl;
return 0;
}
int rollDice(void)
{
int die1, die2, worksum;
die1 = 1 + rand() % 6;
die2 = 1 + rand() % 6;
worksum = die1 + die2;
cout<<"player rolled " << die1 << "+" << die2 << " " << worksum << endl;
return worksum;
}
int intro(void)
{
cout<<" you walk out of the local corner store with a 40oz in a bag(h0w 80s)."<<endl
<<" jo0 see some of the local gangbangers big smally,bubba and wang g thang playing craps."<<endl
<<" You go ooo i can do that,sorta like monopoly. You walk your ghetto walk and"<<endl
<<" speak in your best ebonics, ay yo, lemme get in dis yo. i can beat all yaw fewls"<<endl
<<" they look at you,like who is dis white dude?stick to water polo. But you whine" <<endl
<<" and plead and finally they let you play! Now show your stuff in....."<<endl;
cout<<"\nVirtual Ghetto Craps@#&%&\n\n";
}